import {observable, action} from "mobx";


class page {
    @observable menuSelected = "1";
    @observable openKeys = null;

    @action setMenuSelected(menuSelected = undefined) {
        // console.log("setMenuSelected:", menuSelected);
        this.menuSelected = menuSelected;
    };

    @action setOpenKeys(key) {
        // console.log("setOpenKeys",this.openKeys);
        this.openKeys = key;
    }

    @action getOpenKeys() {
        // console.log("getOpenKeys",this.openKeys);
        return this.openKeys
    }
}

export default new page();